<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateLogMergesTable extends Migration
{
    /**
     * Run the migrations.合服记录表.
     */
    public function up()
    {
        Schema::create('log_merges', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('from_id')->comment('被合服id');
            $table->integer('to_id')->comment('合服id');
            $table->string('section')->comment('合服区间段');
            $table->integer('uid')->comment('操作人');
            $table->string('desc')->comment('备注');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('log_merges');
    }
}
